package cn.tedu.yushougeproduct.mapper;

import cn.tedu.yushougeproduct.pojo.entity.Spu;
import cn.tedu.yushougeproduct.pojo.vo.SpuFullInfoVO;
import cn.tedu.yushougeproduct.pojo.vo.SpuListItemVO;
import cn.tedu.yushougeproduct.pojo.vo.SpuStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpuMapper extends BaseMapper<Spu> {

    SpuStandardVO getStandardById(Long id);

    List<SpuListItemVO> list();

    List<SpuListItemVO> listByBrandId(Long brandId);

    List<SpuListItemVO> listByCategoryId(Long categoryId);

    List<SpuListItemVO> listByKeywords(String keywords);
}
